<?php
	$arr = array();
	$arr[0] = 10;
	$arr[1] = 100;
	$arr[2] = 25;
	
	$arr2 = array(10, "elemento2", 100, "elemento4");
	
	$arr3 = array();
	$arr3[0] = 10;
	$arr3[1] = "elemento2";
	$arr3[2] = 100;
	$arr3[3] = "elemento4";
	
	/*$usuario2 = array();
	$usuario2["nome"] = "Guilherme";
	$usuario2["email"] = "guibruzzi@gmail.com";
	$usuario2["idade"] =  19;
	$usuario2[25] = 100;*/
	$arr4 = array();
	$arr4['ola'] = 'mundo';
	$arr4['rola'] = 2;
	$arr4['rafinha'] = "boladao";
	$arr4[25] = 250;
	
	//$valor_25 = $arr4[25];
	//echo "$valor_25<br />";
	//echo $arr4['rola'].'<br />';
	
	$usuario = array(
		"nome" => "Guilherme",
		"login" => "guibruzzi",
		"email" => "guibruzzi@gmail.com",
		40 => 100,
		"masc" => true,
		"idade" => 19,
		25 => 100
	);
	$usuario["nome"] = "Bruzzi";
	
	foreach($usuario as $chave => $valor)
	{
		echo "Chave: $chave Valor: $valor<br />";
	}
	
	$usuarios = array(
		0 => array(
			"nome" => "Guilherme",
			"login" => "guibruzzi",
			"email" => "guibruzzi@gmail.com",
			40 => 100,
			"masc" => true,
			"idade" => 19,
			25 => 100
		),
		1 => array(
			"nome" => "Rola",
			"login" => "leandro",
			"email" => "guibruzzi@gmail.com",
			40 => 1002,
			"masc" => true,
			"idade" => 19,
			25 => 100
		),
		2 => array(
			"nome" => "rafiux",
			"login" => "daim",
			"email" => "guibruzzi@gmail.com",
			40 => 100,
			"masc" => false,
			"idade" => 300,
			25 => 1003
		)
	);
	echo "<br />";
	$meu_array = array();
	$meu_array[] = 10;
	$meu_array[] = 10;
	$meu_array[] = 11;
	$meu_array[] = 12;
	$meu_array[] = "sianf";
	$meu_array[] = "rolsadsada";
	$meu_array[] = "isoanfiopa";
	$meu_array[231] = "isoanfiopa";
	$meu_array['ola munsdado'] = "isoanfiopa";
	foreach($meu_array as $irado_essa_chave => $val)
	{
		echo "$irado_essa_chave - $val<br />";
	}
	
	$tamanho = count($meu_array);
	echo $tamanho.'<br />';
	
	if(in_array("rola", $meu_array))
	{
		echo "existe rola no array<br />";
	}
	if(array_key_exists('ola mundo',$meu_array))
	{
		echo "existe a chave ola mundo no array<br />";
	}
	
	$arr = array(
	0 => 'sad',
	"chave1" => "valor1",
	"chave2" => "valor2",
	3 => 150,
	"quatro" => 4
	);
	if(empty($arr))
	{
		echo "array vazio";
	}
	
	unset($arr['chave1']);
	
	$arr8 = array("caqui", "banana", "amora", "morango");
	echo "<pre>"; print_r($arr8); echo "</pre>";
	sort($arr8);
	echo "<pre>"; print_r($arr8); echo "</pre>";
	
	$valores = array(
		"*10*" => "Guilherme",
		"**Leandro*" => "Rola",
		10 => 20,
		"Ana" => "Baixinha",
		"Betinho**" => "Oompa Loompa",
		"*Jade*" => "Diretor de Projetos",
		"Nascimento" => "Financeira"
	);
?>
<pre><?php print_r($arr);?></pre>




